﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">

<title>每一封情书都有意义，因为遇见你</title> 
<style>
body.rich_media_empty_extra .rich_media_area_primary:before{display:none}
*{margin:0;padding:0}
a{color:#607fa6;text-decoration:none}
.rich_media_inner{font-size:16px;word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}
.rich_media_area_primary{position:relative;padding:20px 15px 15px;background-color:#fff}
.rich_media_area_primary:before{content:" ";position:absolute;left:0;top:0;width:100%;height:1px;border-top:1px solid #e5e5e5;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(0.5);transform:scaleY(0.5);top:auto;bottom:-2px}
.rich_media_area_primary .original_img_wrp{display:inline-block;font-size:0}
.rich_media_area_primary .original_img_wrp .tips_global{display:block;margin-top:.5em;font-size:14px;text-align:right;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal}
.rich_media_area_extra{padding:0 15px 0}
.rich_media_title{margin-bottom:10px;line-height:1.4;font-weight:400;font-size:24px}
.rich_media_meta_list{margin-bottom:18px;line-height:20px;font-size:0}
.rich_media_meta_list em{font-style:normal}
.rich_media_meta{display:inline-block;vertical-align:middle;margin-right:8px;margin-bottom:10px;font-size:16px}
.meta_original_tag{display:inline-block;vertical-align:middle;padding:1px .5em;border:1px solid #9e9e9e;color:#8c8c8c;border-top-left-radius:20% 50%;-moz-border-radius-topleft:20% 50%;-webkit-border-top-left-radius:20% 50%;border-top-right-radius:20% 50%;-moz-border-radius-topright:20% 50%;-webkit-border-top-right-radius:20% 50%;border-bottom-left-radius:20% 50%;-moz-border-radius-bottomleft:20% 50%;-webkit-border-bottom-left-radius:20% 50%;border-bottom-right-radius:20% 50%;-moz-border-radius-bottomright:20% 50%;-webkit-border-bottom-right-radius:20% 50%;font-size:15px;line-height:1.1}
.meta_enterprise_tag img{width:30px;height:30px!important;display:block;position:relative;margin-top:-3px;border:0}
.rich_media_meta_text{color:#8c8c8c}
span.rich_media_meta_nickname{display:none}
.rich_media_thumb_wrp{margin-bottom:6px}
.rich_media_thumb_wrp .original_img_wrp{display:block}
.rich_media_thumb{display:block;width:100%}
.rich_media_content{overflow:hidden;color:#3e3e3e}
.rich_media_content *{max-width:100%!important;box-sizing:border-box!important;-webkit-box-sizing:border-box!important;word-wrap:break-word!important}
.rich_media_content p{clear:both;min-height:1em}
.rich_media_content em{font-style:italic}
.rich_media_content fieldset{min-width:0}
.rich_media_content .list-paddingleft-2{padding-left:30px}
.rich_media_content blockquote{margin:0;padding-left:10px;border-left:3px solid #dbdbdb}img{height:auto!important}
@media(min-device-width:375px) and (max-device-width:667px) and (-webkit-min-device-pixel-ratio:2)
{.mm_appmsg .rich_media_inner,.mm_appmsg .rich_media_meta,.mm_appmsg .discuss_list,.mm_appmsg .rich_media_extra,.mm_appmsg .title_tips .tips{font-size:17px}.mm_appmsg .meta_original_tag{font-size:15px}}
@media(min-device-width:414px) and (max-device-width:736px) and (-webkit-min-device-pixel-ratio:3){.mm_appmsg .rich_media_title{font-size:25px}}@media screen and (min-width:1024px){.rich_media{width:740px;margin-left:auto;margin-right:auto}
.rich_media_inner{padding:20px}body{background-color:#fff}}@media screen and (min-width:1025px){body{font-family:"Helvetica Neue",Helvetica,"Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif}
.rich_media{position:relative}
.rich_media_inner{background-color:#fff;padding-bottom:100px}}
  
.likenum{background:#F16E50;padding:4px 10px;text-align:center;color:white;}
.dolike{background:#F16E50;color:white;padding:4px 10px 4px 15px;}
.name{background:#F16E50;color:white;padding:4px 10px;}
/* 优化后的分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.pagination li {
    margin: 0 3px;
}

.pagination a, 
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    color: #3399D5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: #f0f7ff;
    border-color: #cce0f5;
    color: #2679b5;
    transform: translateY(-1px);
}

.pagination .active span {
    background-color: #3399D5;
    color: white !important;
    border-color: #3399D5;
    box-shadow: 0 2px 4px rgba(51, 153, 213, 0.2);
}

.pagination .disabled span {
    color: #d1d5da !important;
    background-color: #f6f8fa;
    border-color: #e1e4e8;
    cursor: not-allowed;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .pagination li {
        margin: 0 2px;
    }
    .pagination a, 
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}
</style>

<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/appmsg/page_mp_article_improve_pc2c9cd6.css">
<![endif]-->

    </head>
    <body id="activity-detail" class="zh_CN mm_appmsg">

    <div id="js_article" class="rich_media">
        
        <div id="js_top_ad_area" class="top_banner">
 
        </div>
                

        <div class="rich_media_inner">
                        <div id="page-content">
                <div id="img-content" class="rich_media_area_primary">
                    <h2 class="rich_media_title" id="activity-name">
                        每一封情书都有意义，因为遇见你 
                    </h2>
                    <div class="rich_media_meta_list">
                        						                        <em id="post-date" class="rich_media_meta rich_media_meta_text"><?php echo date('Y-m-d',time());?></em>

                                                <em class="rich_media_meta rich_media_meta_text"></em>
                                                <a class="rich_media_meta rich_media_meta_link rich_media_meta_nickname" id="post-user">叁行情书</a>
                        <span class="rich_media_meta rich_media_meta_text rich_media_meta_nickname">叁行情书</span>

                        <div id="js_profile_qrcode" class="profile_container" style="display:none;">
                            <div class="profile_inner">
                                <strong class="profile_nickname">叁行情书</strong>
                                <img class="profile_avatar" id="js_profile_qrcode_img" src="" alt="">

                                <p class="profile_meta">
                                <label class="profile_meta_label">微信号</label>
                                <span class="profile_meta_value">Three--poems</span>
                                </p>

                                <p class="profile_meta">
                                <label class="profile_meta_label">功能介绍</label>
                                <span class="profile_meta_value">每一封情书都有意义， 遇见你， 是我， 最美的风景</span>
                                </p>
                                
                            </div>
                            <span class="profile_arrow_wrp" id="js_profile_arrow_wrp">
                                <i class="profile_arrow arrow_out"></i>
                                <i class="profile_arrow arrow_in"></i>
                            </span>
                        </div>
                    </div>
                    
                    
                    
                    
                                                            
                                                            
                    
                    <div class="rich_media_content " id="js_content">
                        

                        
                       {volist name="list" id="vo" key="k"}
                            <p style="text-align: center;">
                                <span style="">
                                    {if $vo.img != ''}
                                        <img class="lazy" data-original="{$vo.img}" width="640" height="360" alt="">
                                    {/if}
                                    <br/>
                                    <b style="margin-left:0px">{$k}</b>
                                    <br/><br/>{$vo.one}<br/><br/>{$vo.two}<br/><br/>{$vo.three}<br/><br/>
                                    <br/>
                                    <em class="name">- -{$vo.penname}</em>
                                    <br/>
                                    <br/>
                                    <div class="likeitem-{$vo.id}" style="text-align: center;">
                                        <em class="likenum likenum-{$vo.id}">{$vo.likes}</em>
                                        <a href="javascript:void(0)" onclick="dolike({$vo.id})">
                                            <em class="dolike">我喜欢</em>
                                        </a>
                                    </div>
                                    <br/>
                                </span>
                            </p>
                            <p style="width:100%">----------------------------------------------------------------------------------------------------------------------------</p>
                        {/volist}                                                                     
						<div class="pagination">{$list->render()|raw}</div>
						
                    </div>



                                    </div>

               
            </div>
       

        </div>
    </div>

</body>
<script src="__ROOT__/shiwen/pc/xin/js/jquery-1.7.1.min.js"></script>
<script src="__ROOT__/shiwen/pc/xin/js/jquery.lazyload.js"></script>
<script src="__ROOT__/shiwen/pc/xin/js/sweetalert.min.js"></script>
<link rel="stylesheet" type="text/css" href="__ROOT__/shiwen/pc/xin/css/sweetalert.css">
<script type="text/javascript">
	$(function () {
		$("img.lazy").lazyload();
	});
	//点击我喜欢
	function dolike(id){
		var num=$(".likenum-"+id).text();
		num=parseInt(num)+1; 
        $.ajax({
            url: "/love_like.html",
            type: "POST",
            data: {id: id},
            dataType: "json",
            success: function(msg) {
                if (msg.code == 200) {
                    swal("Good!", msg.msg, "success");
                    var src="<em class='likenum'>"+num+"</em><a href='javascript:void(0)' onclick='ndolike()' class='like'><em class='dolike'>我喜欢</em></a>";
                    $(".likeitem-"+id).html(src);
                } else {
                    swal("OMG!", msg.msg, "error");
                }
            },
            error: function(xhr, status, error) {
                swal("OMG!", msg.msg, "error");
            }
        });               

	}
//再次点击
	function ndolike(){
	
		swal("OMG!", "[捂脸]，你这家伙还没点够???", "error");
	
	}
</script>
</html>